Global variables different to other variables because
they can be accessed throughout the entire program regardless
of whether they are being accessed from a procedure or not.
To make a variable global (e.g.
n) it needs to be declared to be so.
int n
Global n
This can also be written as...
Global int n
Once this has been done it can
now be accessed throughout the main code and inside all procedures.